<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/base_data/Bak_partout_117.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/myerp/base_data/Bak_partout_117.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'BAK_SCM_SAP_PARTOUT_ID',
                footer: "Foots",
                cnName: '中间库出库表',
                name: 'base_data/Bak_partout_117',
                url: "/Bak_partout_117/",
                sortName: "BAK_SCM_SAP_PARTOUT_ID"
            });
            const editFormFields = ref({"INDICATOR":"","PFLAG":"","PREASON":"","PDATE":"","OUTBOUND_TYPE":"","SHEET_NO":"","FPLANT_NO":"","TPLANT_NO":"","S_STORAGE_NO":"","D_STORAGE_NO":"","SUPPL_NO":"","PART_NO":"","OUTBOUND_QTY":"","OUTBOUND_TIME":"","PART_STORAGE_ATTR":"","PART_STORAGE_TYPE":"","CREATE_DATE":"","CREATE_BY":"","UPDATE_DATE":"","UPDATE_BY":"","MARK_DELETE":"","LINE_NO":"","EBELN":"","STEPID":""});
            const editFormOptions = ref([[{"title":"PREASON","field":"PREASON"},
                               {"title":"PDATE","field":"PDATE"},
                               {"title":"INDICATOR","required":true,"field":"INDICATOR"},
                               {"title":"PFLAG","required":true,"field":"PFLAG"}],
                              [{"title":"OUTBOUND_TYPE","field":"OUTBOUND_TYPE"},
                               {"title":"SHEET_NO","field":"SHEET_NO"},
                               {"title":"FPLANT_NO","field":"FPLANT_NO"},
                               {"title":"TPLANT_NO","field":"TPLANT_NO"}],
                              [{"title":"S_STORAGE_NO","field":"S_STORAGE_NO"},
                               {"title":"D_STORAGE_NO","field":"D_STORAGE_NO"},
                               {"title":"SUPPL_NO","field":"SUPPL_NO"},
                               {"title":"PART_NO","field":"PART_NO"}],
                              [{"title":"OUTBOUND_QTY","field":"OUTBOUND_QTY"},
                               {"title":"OUTBOUND_TIME","field":"OUTBOUND_TIME"},
                               {"title":"PART_STORAGE_ATTR","field":"PART_STORAGE_ATTR"},
                               {"title":"PART_STORAGE_TYPE","field":"PART_STORAGE_TYPE"}],
                              [{"title":"CREATE_BY","field":"CREATE_BY"},
                               {"title":"UPDATE_DATE","field":"UPDATE_DATE"},
                               {"title":"UPDATE_BY","field":"UPDATE_BY"},
                               {"title":"CREATE_DATE","required":true,"field":"CREATE_DATE"}],
                              [{"title":"LINE_NO","field":"LINE_NO"},
                               {"title":"EBELN","field":"EBELN"},
                               {"title":"STEPID","field":"STEPID"},
                               {"title":"MARK_DELETE","required":true,"field":"MARK_DELETE"}]]);
            const searchFormFields = ref({"PFLAG":"","OUTBOUND_TYPE":"","SHEET_NO":"","PART_NO":""});
            const searchFormOptions = ref([[{"title":"PFLAG","field":"PFLAG"},{"title":"OUTBOUND_TYPE","field":"OUTBOUND_TYPE"},{"title":"SHEET_NO","field":"SHEET_NO"}],[{"title":"PART_NO","field":"PART_NO"}]]);
            const columns = ref([{field:'BAK_SCM_SAP_PARTOUT_ID',title:'BAK_SCM_SAP_PARTOUT_ID',type:'decimal',link:true,width:110,require:true,align:'left',sort:true},
                       {field:'INDICATOR',title:'INDICATOR',type:'string ',width:110,require:true,align:'left'},
                       {field:'PFLAG',title:'PFLAG',type:'string ',width:110,require:true,align:'left'},
                       {field:'PREASON',title:'PREASON',type:'string',width:180,align:'left'},
                       {field:'PDATE',title:'PDATE',type:'string ',width:110,align:'left'},
                       {field:'OUTBOUND_TYPE',title:'OUTBOUND_TYPE',type:'string',width:110,align:'left'},
                       {field:'SHEET_NO',title:'SHEET_NO',type:'string',width:110,align:'left'},
                       {field:'FPLANT_NO',title:'FPLANT_NO',type:'string',width:110,align:'left'},
                       {field:'TPLANT_NO',title:'TPLANT_NO',type:'string',width:110,align:'left'},
                       {field:'S_STORAGE_NO',title:'S_STORAGE_NO',type:'string',width:110,align:'left'},
                       {field:'D_STORAGE_NO',title:'D_STORAGE_NO',type:'string',width:110,align:'left'},
                       {field:'SUPPL_NO',title:'SUPPL_NO',type:'string',width:110,align:'left'},
                       {field:'PART_NO',title:'PART_NO',type:'string',width:110,align:'left'},
                       {field:'OUTBOUND_QTY',title:'OUTBOUND_QTY',type:'string',width:110,align:'left'},
                       {field:'OUTBOUND_TIME',title:'OUTBOUND_TIME',type:'string',width:110,align:'left'},
                       {field:'PART_STORAGE_ATTR',title:'PART_STORAGE_ATTR',type:'string',width:110,align:'left'},
                       {field:'PART_STORAGE_TYPE',title:'PART_STORAGE_TYPE',type:'string',width:110,align:'left'},
                       {field:'CREATE_DATE',title:'CREATE_DATE',type:'string ',width:110,require:true,align:'left'},
                       {field:'CREATE_BY',title:'CREATE_BY',type:'string',width:110,align:'left'},
                       {field:'UPDATE_DATE',title:'UPDATE_DATE',type:'string ',width:110,align:'left'},
                       {field:'UPDATE_BY',title:'UPDATE_BY',type:'string',width:110,align:'left'},
                       {field:'MARK_DELETE',title:'MARK_DELETE',type:'string ',width:110,require:true,align:'left'},
                       {field:'LINE_NO',title:'LINE_NO',type:'string',width:110,align:'left'},
                       {field:'EBELN',title:'EBELN',type:'string',width:110,align:'left'},
                       {field:'STEPID',title:'STEPID',type:'string ',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
